﻿using System;
using SqlSugar;
using YL.Utils.Extensions;

namespace YL.Core.Entity
{
    [SugarTable("whr_notification_category")]
    public class Whr_notification_category
    {
        /// <summary>
        /// 通知类型id
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public int CategoryId { get; set; }
        
        /// <summary>
        /// 类型名称
        /// </summary>
        [SugarColumn(ColumnName = "name")]
        public String Name { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [SugarColumn(ColumnName = "create_at")]
        public int CreateAt { get; set; } = DateTimeExt.GetUnixTimestamp();

        /// <summary>
        /// 家长端是否展示
        /// </summary>
        [SugarColumn(ColumnName = "if_patriarch")]
        public byte IfPatriarch { get; set; }

        /// <summary>
        /// 教师端是否展示
        /// </summary>
        [SugarColumn(ColumnName = "if_teacher")]
        public byte IfTeacher { get; set; }

        /// <summary>
        /// 教师端是否展示
        /// </summary>
        [SugarColumn(ColumnName = "if_admin")]
        public byte IfAdmin { get; set; }

    }
}
